package com.hz.copyingsystem.feign;

import com.hz.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

@FeignClient("hz-oss")
public interface OssFeign {
    @PostMapping(value = "/oss/upload",consumes = "multipart/form-data", produces = "*/*")
    public R upload(MultipartFile file);

    @GetMapping("/oss/uploadZip")
    public R uploadZip(@RequestParam("path") String path);
}
